/**
 * 
 */
package gui;

import java.awt.Dimension;
import javax.swing.Icon;
import javax.swing.JButton;

/**
 * @author Wilson Cheong
 *
 */
public class GButton extends JButton {		
	private static final long serialVersionUID = 1L;
	private int[] buttonID = null;
	
	public GButton() {
		super();		
		initiate();
	}

	public GButton(int[] id){
		super();
		initiate();
		buttonID = new int [3];
		buttonID[0] = id[0];
		buttonID[1] = id[1];
		buttonID[2] = id[2];
	}
	
	public GButton(Icon icon) {
		super(icon);
		initiate();
	}
	
	public GButton(String text) {
		super(text);
		initiate();
	}
	
	public int[] getID(){
		return buttonID;
	}
	
	public void initiate(){
		setPreferredSize(new Dimension(50,50));		
		setMinimumSize(new Dimension(50,50));		
		setMaximumSize(new Dimension(50,50));
		//setEnabled(false);
	}	
}
